class Solution {
public:
    int theMaximumAchievableX(int num, int t) {
        // 贪心
        return num + (t << 1);
    }
};